package cn.yfxu.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface BaseCRUDMapper {
    List<Map<String, Object>> selectBySQL(@Param("sql") String sql) throws Exception;

    int deleteByCCode(@Param("table") String table, @Param("ccode") String ccode) throws Exception;

    int delFlagByCCode(@Param("table") String table, @Param("ccode") String ccode) throws Exception;

    int disFlagByCCode(@Param("table") String table, @Param("ccode") String ccode) throws Exception;

    int updateStatusByCCode(@Param("table") String table, @Param("ccode") String ccode,@Param("status") String status) throws Exception;
}